<!-- --------- 收款账户设置----------- -->
<template>
	<view class="skzh">
		<view class="tips2">
			<text>余额：{{ userInfo.ue_money }} USDT</text>
		</view>
		<view class="inputContent">
			<view class="list">
				<view class="leftText">转出数量：</view>
				<input
					type="number"
					v-model="amount"
					placeholder="请输入转出数量"
					placeholder-class="pl"
				/>
			</view>
			<view class="list lastItem">
				<view class="leftText">收款账户：</view>
				<input
					type="text"
					v-model="account"
					placeholder="请输入收款账户"
					placeholder-class="pl"
				/>
			</view>
			<view class="list lastItem">
				<view class="leftText">交易密码：</view>
				<input
					type="password"
					v-model="password"
					placeholder="请输入交易密码"
					placeholder-class="pl"
				/>
			</view>
		</view>

		<view class="tips2">
			<text>温馨提示： </text>
			<text>请准确填写您的账户的信息, 提现手续费为15USDT</text>
		</view>

		<view @click="submit" class="btn">提交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				amount: "",
				account: "",
				password: "",
				userInfo: {},
			};
		},
		onLoad() {
			this.$request.get("/Home/info/me").then(({ data }) => {
				this.userInfo = data;
			});
		},
		methods: {
			submit() {
				this.$request
					.get("/Home/info/zza/", {
						to_num: this.amount,
						skzh: this.account,
						aq_pwd: this.password,
					})
					.then(({ msg: title }) =>
						uni.showToast({ title, success: (res) => setTimeout(uni.navigateBack, 1500) })
					);
			},
		},
	};
</script>

<style lang="scss">
	.skzh {
		position: relative;
		padding: 30rpx;

		.tabs {
			background: #fff;
			position: fixed;
			left: 0;
			right: 0;
			top: 88rpx;
			width: 100%;
			height: 80rpx;
			display: flex;
			justify-content: space-between;
			z-index: 99;

			> view {
				height: 100%;
				width: 50%;
				text-align: center;
				font-size: 34rpx;
				font-family: Alibaba PuHuiTi;
				font-weight: 500;
				color: #1a1a1a;
				display: flex;
				justify-content: center;
				align-items: center;

				> view {
					border-bottom: 4rpx solid #ffffff;
				}

				.active {
					color: #2a62ff;
					border-bottom: 4rpx solid #2a62ff;
				}
			}
		}

		.inputContent {
			border-radius: 10rpx;
			background: #ffffff;
			padding: 0 20rpx;
			.list {
				display: flex;
				flex-direction: row;
				align-items: center;
				border-bottom: 1rpx solid #e5e5e5;
				height: 98rpx;

				.leftText {
					width: 170rpx;
					font-size: 30rpx;
					font-family: Alibaba PuHuiTi;
					font-weight: 400;
					color: #1a1a1a;
					margin-right: 10rpx;
				}

				input {
					flex-grow: 1;
				}

				.pl {
					font-size: 24rpx;
					font-family: Alibaba PuHuiTi;
					font-weight: 400;
					color: #999999;
				}
			}
			.lastItem {
				border: none;
			}
		}

		.tips1 {
			font-size: 24rpx;
			font-family: Alibaba PuHuiTi;
			font-weight: 400;
			color: #ff4141;
			margin-top: 30rpx;
		}

		.btn {
			width: 690rpx;
			height: 80rpx;
			background: #2a62ff;
			border-radius: 10rpx;
			margin: auto;
			margin-top: 150rpx;
			font-size: 34rpx;
			font-family: Alibaba PuHuiTi;
			font-weight: 400;
			color: #ffffff;
			line-height: 80rpx;
			text-align: center;
		}

		.tips2 {
			display: flex;
			flex-direction: column;
			line-height: 2;
			font-size: 24rpx;
			font-family: Alibaba PuHuiTi;
			font-weight: 400;
			color: #666666;
			margin: 30rpx;
		}
	}
</style>
